package com.ilovepostcard.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
<pre>
{
“HasNewVersion”:true  //是否有新版本，类型：Boolean
“Version”:”1.0.1”,  //最新版本号，类型：String
”Url”:”http://www.ilovepostcard.com/mxp.apk”,  //下载地址，类型：String
“Note”:””  //更新说明，类型：String
}
</pre>
 */
public class CheckNewData {
    
    public boolean HasNewVersion;
    public String Version;
    public String Url;
    public String Note;
    
    public void setData(JSONObject json) throws JSONException {
        HasNewVersion = json.getBoolean("HasNewVersion");
        Version = json.getString("Version");
        Url = json.getString("Url");
        Note = json.getString("Note");
    }
}
